package com.xcc.common.config.login;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.context.annotation.PropertySources;

/**
 * @author frosty
 * @description
 * @date 2019-11-21 21:09:07
 */


@Configuration
/*按顺序加载  后面的会覆盖前面的*/
@PropertySource(value= {"classpath:logindefault.properties","classpath:login.properties"})
public class LoginConfig {
    public   static    int MAX_LOGIN_TIME ;
    public   static   long TOKEN_TIME ;


    @Value("${max.login.time}")
    public  void setMaxLoginTime(int maxLoginTime) {

        MAX_LOGIN_TIME = maxLoginTime;
    }
    @Value("${max.token.time}")
    public  void setTokenTime(long tokenTime) {

        TOKEN_TIME = tokenTime;
    }
}
